package com.brainhealth.customer.service.impl;

import java.util.List;
import com.brainhealth.common.utils.DateUtils;
import com.brainhealth.customer.domain.SysUserEventBuriedPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.brainhealth.customer.mapper.SysUserEventBuriedPointResultMapper;
import com.brainhealth.customer.domain.SysUserEventBuriedPointResult;
import com.brainhealth.customer.service.ISysUserEventBuriedPointResultService;

/**
 * 用户事件埋点结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-03
 */
@Service
public class SysUserEventBuriedPointResultServiceImpl implements ISysUserEventBuriedPointResultService 
{
    @Autowired
    private SysUserEventBuriedPointResultMapper sysUserEventBuriedPointResultMapper;

    /**
     * 查询用户事件埋点结果
     * 
     * @param id 用户事件埋点结果主键
     * @return 用户事件埋点结果
     */
    @Override
    public SysUserEventBuriedPointResult selectSysUserEventBuriedPointResultById(Long id)
    {
        return sysUserEventBuriedPointResultMapper.selectSysUserEventBuriedPointResultById(id);
    }

    @Override
    public List<Long> selectCustomerIdList(SysUserEventBuriedPointResult sysUserEventBuriedPointResult) {
        return sysUserEventBuriedPointResultMapper.selectCustomerIdList(sysUserEventBuriedPointResult);
    }

    /**
     * 查询用户事件埋点结果列表
     * 
     * @param sysUserEventBuriedPointResult 用户事件埋点结果
     * @return 用户事件埋点结果
     */
    @Override
    public List<SysUserEventBuriedPointResult> selectSysUserEventBuriedPointResultList(SysUserEventBuriedPointResult sysUserEventBuriedPointResult)
    {
        return sysUserEventBuriedPointResultMapper.selectSysUserEventBuriedPointResultList(sysUserEventBuriedPointResult);
    }

    @Override
    public int batchInsertSysUserEventBuriedPointResult(List<SysUserEventBuriedPointResult> sysUserEventBuriedPointResultList) {
        return sysUserEventBuriedPointResultMapper.batchInsertSysUserEventBuriedPointResult(sysUserEventBuriedPointResultList);
    }

    /**
     * 新增用户事件埋点结果
     * 
     * @param sysUserEventBuriedPointResult 用户事件埋点结果
     * @return 结果
     */
    @Override
    public int insertSysUserEventBuriedPointResult(SysUserEventBuriedPointResult sysUserEventBuriedPointResult)
    {
        sysUserEventBuriedPointResult.setCreateTime(DateUtils.getNowDate());
        return sysUserEventBuriedPointResultMapper.insertSysUserEventBuriedPointResult(sysUserEventBuriedPointResult);
    }

    /**
     * 修改用户事件埋点结果
     * 
     * @param sysUserEventBuriedPointResult 用户事件埋点结果
     * @return 结果
     */
    @Override
    public int updateSysUserEventBuriedPointResult(SysUserEventBuriedPointResult sysUserEventBuriedPointResult)
    {
        return sysUserEventBuriedPointResultMapper.updateSysUserEventBuriedPointResult(sysUserEventBuriedPointResult);
    }

    /**
     * 批量删除用户事件埋点结果
     * 
     * @param ids 需要删除的用户事件埋点结果主键
     * @return 结果
     */
    @Override
    public int deleteSysUserEventBuriedPointResultByIds(Long[] ids)
    {
        return sysUserEventBuriedPointResultMapper.deleteSysUserEventBuriedPointResultByIds(ids);
    }

    /**
     * 删除用户事件埋点结果信息
     * 
     * @param id 用户事件埋点结果主键
     * @return 结果
     */
    @Override
    public int deleteSysUserEventBuriedPointResultById(Long id)
    {
        return sysUserEventBuriedPointResultMapper.deleteSysUserEventBuriedPointResultById(id);
    }
}
